package com.ruoyi.merchant.mapper;


import com.ruoyi.common.core.cg.pojo.Synthesis;
import com.ruoyi.common.core.cg.pojo.TCommunityStore;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

/**
* @author ？？？
* @description 针对表【synthesis】的数据库操作Mapper
* @createDate 2025-03-04 14:04:13
* @Entity generator.pojo.Synthesis
*/
@Mapper
public interface SynthesisMapper{
    /**
     * 添加商户表
     * @param synthesis
     * @return
     */
    int SynthesSave(Synthesis synthesis);

    /**
     * 根据邀请码查询数据
     */
    Synthesis selectByInvitationCode(String invitationCode);

    /**
     * 根据id查询数据表
     * @param userId
     */
    Synthesis findByUserId(String userId);

    /**
     * 添加t_community_store
     */
    @Insert("insert into t_community_store(community_id,store_id) values(#{communityId},#{storeId})")
    int saveComStore(TCommunityStore tCommunityStore);
}




